<?php
/**
 * 	Bushido
 *
 * @category   Bushido
 * @package    Bushido_Table
 * @copyright  Copyright (c) 2008-2009 Nathan Keyes
 * @author Nathan Keyes
 * @version    $Id: SubForm.php 7 2009-11-14 22:42:08Z nkeyes $
 */
 
/**
 * 
 * @author Nathan Keyes
 *
 */
class Bushido_Form_SubForm extends Bushido_Form
{
    /**
     * Whether or not form elements are members of an array
     * @var bool
     */
    protected $_isArray = true;

    /**
     * Load the default decorators
     * 
     * @return void
     */
    public function loaddefaultDecorators()
    {
        if ($this->loaddefaultDecoratorsIsDisabled()) {
            return;
        }

        $decorators = $this->getDecorators();
        if (empty($decorators)) {
            $this->addDecorator('FormElements')
                 ->addDecorator('HtmlTag', array('tag' => 'dl'))
                 ->addDecorator('Fieldset')
                 ->addDecorator('DtDdWrapper');
        }
    }
}
